CVE-2026-54240, CVE-2026-54241: fix pixel-accessor integer overflow
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Thu, 6 Aug 2026 05:05:03 +0000 (13:05 +0800)
committerAron Xu <aron@debian.org>
Thu, 6 Aug 2026 05:05:03 +0000 (13:05 +0800)
commit7281e19453a3550fb986093a06a12aa86d34f57c
tree13b56add7008718e3bc58104cdb888ad908fc6fc
parentff2b49f4fcf2d7198e523fffde0c69e7aec6ec81
CVE-2026-54240, CVE-2026-54241: fix pixel-accessor integer overflow

Origin: upstream, https://github.com/strukturag/libde265/commit/bdca87569b9c63c2a7054d90ae4462dbb78d159a
Bug: https://github.com/strukturag/libde265/security/advisories/GHSA-ccfw-29x7-rrx3
Bug: https://github.com/strukturag/libde265/security/advisories/GHSA-j2qq-x2xq-g9wr
Applied-Upstream: 1.1.1

The image pixel accessors computed xpos + ypos*stride in signed 32-bit
arithmetic; frames with width*height > INT32_MAX wrap the offset and the
returned pointer lands far outside the buffer (OOB read/write). Widen
stride/offset math to 64 bits and store validated SPS dimensions in
uint16_t.

Gbp-Pq: Name CVE-2026-54240_CVE-2026-54241.patch
libde265/de265.cc
libde265/image-io.cc
libde265/image.cc
libde265/image.h
libde265/intrapred.h
libde265/motion.cc
libde265/sao.cc
libde265/sei.cc
libde265/sps.cc
libde265/sps.h